package com.qf.business.message.application;

import com.qf.business.message.netty.NettyServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * SpringBoot工程启动时触发
 * author Ken
 * create_time 2023/1/6
 */
@Component
public class ApplicationRunning implements CommandLineRunner {

    @Autowired
    private NettyServer nettyServer;

    @Override
    public void run(String... args) throws Exception {
        nettyServer.start();
    }
}
